This patch fixes an error booting 32bit vista on VMX.
authorSteven Hand <steven@xensource.com>
Fri, 22 Sep 2006 11:27:28 +0000 (12:27 +0100)
committerSteven Hand <steven@xensource.com>
Fri, 22 Sep 2006 11:27:28 +0000 (12:27 +0100)
commit14983912a916d84de34867559f68e2af11e0b28a
tree296e8927825b4652ab0bde4915a4cefd29b7170d
parentf0cb8942c47735c4fb0ab1e2dc8c5e6771302711
This patch fixes an error booting 32bit vista on VMX.

The shadow code uses hvm_get_guest_ctrl_reg(v, 4) to test whether
PAE is enabled or not.  But it is not always right if the hypervisor
calls hvm_get_guest_ctrl_reg(v, 4) between vmxassist_invoke and
vmxassist_restore

The patch uses the d->arch.hvm_vmx.cpu_state to test if the PAE is
enabled.

Also update SVM code to use the new 'pae_enabled' hvm func.

Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Steven Hand <steven@xensource.com>
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/mm/shadow/common.c
xen/include/asm-x86/hvm/hvm.h
xen/include/asm-x86/hvm/vmx/vmcs.h
xen/include/asm-x86/hvm/vmx/vmx.h